﻿using EasyAbp.Abp.Trees;
using Joy.Erp.BasicArchives;
using Microsoft.Extensions.DependencyInjection;
using Volo.Abp.Application;
using Volo.Abp.AutoMapper;
using Volo.Abp.Modularity;
using Volo.Abp.SettingManagement;

namespace Joy.Erp.Ufida
{
    [DependsOn(
        typeof(BasicArchivesDomainModule),
        typeof(BasicArchivesApplicationContractsModule),
        typeof(AbpDddApplicationModule),
        typeof(AbpAutoMapperModule),
        typeof(AbpSettingManagementApplicationModule),
        typeof(AbpTreesApplicationModule),
        typeof(UfidaApplicationContractsModule),
        typeof(BasicArchivesApplicationModule)
    )]
    public class UfidaApplicationModule : AbpModule
    {
        public override void ConfigureServices(ServiceConfigurationContext context)
        {
            context.Services.AddAutoMapperObjectMapper<UfidaApplicationModule>();
            Configure<AbpAutoMapperOptions>(options =>
            {
                options.AddMaps<UfidaApplicationModule>(validate: true);
            });
        }
    }
}
